export default {
  pages: [
    "pages/index/index",
    "pages/mine/index",
    "pages/coupon/index",
    "pages/merchant/index",
    "pages/webview/index",
    "pages/login/index",
  ],
  window: {
    backgroundColor: "#fff",
    // 顶部窗口的背景色，仅 iOS 支持
    backgroundColorTop: "#fff",
    // 顶部窗口的背景色，仅 iOS 支持
    backgroundColorBottom: "#fff",
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    // navigationBarTitleText: "选品",
    navigationBarTextStyle: "black",

    // 控制预加载下个页面的时机
    handleWebviewPreload: "auto",
  },
  subpackages: [
    {
      root: "packageActivity",
      pages: [
        "pages/activity/detail",
        "pages/activity/etimeDetail",
        "pages/activity/ticketResult",
      ],
    },
    {
      root: "packageMerchant",
      pages: [
        "pages/settled/index",
        "pages/settled/result",
        "pages/enroll/activity",
        // "pages/enroll/apply",
        "pages/enroll/result",
        "pages/staff/apply", // 员工申请
        "pages/staff/result", // 申请结果
        "pages/staff/list", // 员工列表
        "pages/staff/audit", // 员工审核
        "pages/sale/list", // 销售数据列表
        "pages/sale/verifyList", // 核销数据列表
        "pages/activity/list", // 活动列表
        "pages/activity/datelist", // 活动日期列表
        "pages/activity/verifyList", // 单个活动核销日期统计
        // "pages/activity/sale", // 活动销售数据
      ],
    },
    {
      root: "packageCoupon",
      pages: [
        "pages/give",
        "pages/detail",
        "pages/info",
        "pages/share",
        "pages/accept",
      ],
    },
    {
      root: "packageMine",
      pages: [
        "pages/info/index",
        "pages/charge/index",
        "pages/charge/result"
      ],
    },
  ],

  tabBar: {
    color: "#181718",
    selectedColor: "#E31812",
    backgroundColor: "#fff",
    list: [
      {
        text: "首页",
        pagePath: "pages/index/index",
        iconPath: "/static/images/tabbar/home.png",
        selectedIconPath: "/static/images/tabbar/home_active.png",
      },
      {
        text: "票夹",
        pagePath: "pages/coupon/index",
        iconPath: "/static/images/tabbar/coupon.png",
        selectedIconPath: "/static/images/tabbar/coupon_active.png",
      },
      {
        text: "商家",
        pagePath: "pages/merchant/index",
        iconPath: "/static/images/tabbar/merchant.png",
        selectedIconPath: "/static/images/tabbar/merchant_active.png",
      },
      {
        text: "我的",
        pagePath: "pages/mine/index",
        iconPath: "/static/images/tabbar/mine.png",
        selectedIconPath: "/static/images/tabbar/mine_active.png",
      },
    ],
  },

  style: "v2",
  lazyCodeLoading: "requiredComponents",
  rendererOptions: {
    skyline: {
      disableABTest: false,
      defaultDisplayBlock: true,
      defaultContentBox: true,
    },
  },
};
